package view.main;

import info.clearthought.layout.TableLayout;
import java.awt.Container;

import javax.swing.JFrame;
import javax.swing.JLabel;
import model.game.GagalPanenEngine;

public class WinGame extends JFrame {

  private static final long serialVersionUID = 2L;

  private GagalPanenEngine mainengine_;
  public WinGame() {

    this.setTitle("Congratulations!");

    mainengine_ = new GagalPanenEngine();

    Container cp = this.getContentPane();

    // sets the layout using table layout
    double[][] table_size = {
        {400.0},
        {200.0}
    };

    // table layout if x, y

    cp.setLayout(new TableLayout(table_size));

    cp.add(new JLabel("<html>Congratulations!<br/>"
            + "You have defeated the game!</html>"), "0, 0");

    this.pack();

    this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    this.setVisible(true);
  }

}
